package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_YSKM"
 *     
*/
public class XtglYskm implements Serializable {

    /** identifier field */
    private String yskmbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private String kmbm;

    /** persistent field */
    private String kmmc;

    /** persistent field */
    private String jjkmBz;

    /** nullable persistent field */
    private String yzjdBz;

    /** nullable persistent field */
    private String sjkmbm;

    /** persistent field */
    private String kmztBz;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;
    
    private String zjxzDm;
    
    
    /** full constructor */
    public XtglYskm(String yskmbh, String nd, String kmbm, String kmmc, String jjkmBz, String yzjdBz, String sjkmbm, String kmztBz, String zt1, String zt2, String zjxzDm) {
        this.yskmbh = yskmbh;
        this.nd = nd;
        this.kmbm = kmbm;
        this.kmmc = kmmc;
        this.jjkmBz = jjkmBz;
        this.yzjdBz = yzjdBz;
        this.sjkmbm = sjkmbm;
        this.kmztBz = kmztBz;
        this.zt1 = zt1;
        this.zt2 = zt2;
        this.zjxzDm = zjxzDm;
    }

    /** default constructor */
    public XtglYskm() {
    }

    /** minimal constructor */
    public XtglYskm(String yskmbh, String nd, String kmbm, String kmmc, String jjkmBz, String kmztBz) {
        this.yskmbh = yskmbh;
        this.nd = nd;
        this.kmbm = kmbm;
        this.kmmc = kmmc;
        this.jjkmBz = jjkmBz;
        this.kmztBz = kmztBz;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="YSKMBH"
     *         
     */
    public String getYskmbh() {
        return this.yskmbh;
    }

    public void setYskmbh(String yskmbh) {
        this.yskmbh = yskmbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="KMBM"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getKmbm() {
        return this.kmbm;
    }

    public void setKmbm(String kmbm) {
        this.kmbm = kmbm;
    }

    /** 
     *            @hibernate.property
     *             column="KMMC"
     *             length="80"
     *             not-null="true"
     *         
     */
    public String getKmmc() {
        return this.kmmc;
    }

    public void setKmmc(String kmmc) {
        this.kmmc = kmmc;
    }

    /** 
     *            @hibernate.property
     *             column="JJKM_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getJjkmBz() {
        return this.jjkmBz;
    }

    public void setJjkmBz(String jjkmBz) {
        this.jjkmBz = jjkmBz;
    }

    /** 
     *            @hibernate.property
     *             column="YZJD_BZ"
     *             length="1"
     *         
     */
    public String getYzjdBz() {
        return this.yzjdBz;
    }

    public void setYzjdBz(String yzjdBz) {
        this.yzjdBz = yzjdBz;
    }

    /** 
     *            @hibernate.property
     *             column="SJKMBM"
     *             length="50"
     *         
     */
    public String getSjkmbm() {
        return this.sjkmbm;
    }

    public void setSjkmbm(String sjkmbm) {
        this.sjkmbm = sjkmbm;
    }

    /** 
     *            @hibernate.property
     *             column="KMZT_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getKmztBz() {
        return this.kmztBz;
    }

    public void setKmztBz(String kmztBz) {
        this.kmztBz = kmztBz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    
    public String getZjxzDm() {
		return zjxzDm;
	}

	public void setZjxzDm(String zjxzDm) {
		this.zjxzDm = zjxzDm;
	}

	public String toString() {
        return new ToStringBuilder(this)
            .append("yskmbh", getYskmbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglYskm) ) return false;
        XtglYskm castOther = (XtglYskm) other;
        return new EqualsBuilder()
            .append(this.getYskmbh(), castOther.getYskmbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getYskmbh())
            .toHashCode();
    }

}
